﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
    public class R象限标识检查记录表 : RTableBase
    {
        public R象限标识检查记录表(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;
            RecordRemark = recordRemark;
        }

        public override string FormName { get; protected set; } = "象限标识检查记录表";
        /// <summary>
        /// 记录要求
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="recordLocation"></param>
        /// <param name="recordRequire"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public RRecordRequirementsEntity SetRecordRequirements(RRecordRequirementsEntity entity, string recordLocation, string recordRequire, string remarks)
        {
            entity.SetRecordLocation(recordLocation, "位置");
            entity.SetRecordRequire(recordRequire, "检查要求");
            entity.SetRemarks(remarks, "备注");
            return entity;
        }
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="firstMeasuredValues"></param>
        /// <param name="confirmResult"></param>
        /// <returns></returns>
        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string firstMeasuredValues, string confirmResult)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "数量");
            entity.SetConfirmResult(confirmResult, "检查情况");
            return entity;
        }
    }
}
